﻿using System.Windows.Controls;

namespace SosaAnalysisModule
{   
    /// <summary>
    /// http://azerdark.wordpress.com/2010/04/23/multi-page-application-in-wpf/
    /// </summary>
    public static class Switcher
    {   
        public static PageSwitcher pageSwitcher;

        public static void Switch(UserControl newPage)
        {
            pageSwitcher.Navigate(newPage);
        }

        public static void Switch(UserControl newPage, object state)
        {
            pageSwitcher.Navigate(newPage, state);
        }
    }
}

